import 'package:flutter/material.dart';
import 'package:flutter_aggregate/model/plant/constants.dart';

import 'components/body.dart';

class DetailScreen extends StatelessWidget {
  const DetailScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      body: const Body(),
      bottomNavigationBar: Row(
        children: [
          SizedBox(
            width: size.width / 2,
            height: 84,
            child: TextButton(
              style: TextButton.styleFrom(
                backgroundColor: palntKPrimaryColor,
                shape: const RoundedRectangleBorder(
                  borderRadius: BorderRadius.only(
                    topRight: Radius.circular(20)
                  )
                )
              ),
              onPressed: () {}, 
              child: const Text(
                'Buy Now',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 16
                ),
              )
            ),
          ),
          Expanded(child: TextButton(
              onPressed: () {}, 
              child: const Text(
                'Description',
                style: TextStyle(
                  color: Colors.black,
                  fontSize: 16
                ),
              )
            ),
          )
        ],
      ),
    );
  }
}